Pharmacological or electrical cardioversion